// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
// See the LICENCE file in the repository root for full licence text.

.forum-poll {
  @_top: forum-poll;

  .default-box-shadow();
  .default-gutter-v2();
  padding-top: 10px;
  padding-bottom: 10px;
  background-color: @osu-colour-b2;
  color: @osu-colour-c1;

  font-size: @font-size--title-small;

  display: flex;
  flex-direction: column;

  &__actions {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 120ms ease-in-out;

    right: 30px;
    bottom: 20px;

    @media @desktop {
      justify-content: flex-start;
      width: 0;
      right: 0;
      top: 20px;

      opacity: 0;

      .@{_top}:hover & {
        opacity: 1;
      }
    }
  }

  &__button {
    margin: 5px;
  }

  &__detail {
    margin: 2px 0;

    &--sub {
      font-size: @font-size--small;
      color: @osu-colour-c2;
    }
  }

  &__row {
    margin: 5px 0;
    display: flex;
    flex-direction: column;

    &--buttons {
      flex-flow: row wrap;
      margin: 0 -5px;
    }

    &--details {
      margin-top: 3px;
      margin-bottom: 3px;
    }

    &--title {
      margin-bottom: 10px;
    }
  }

  &__title {
    color: inherit;
    font-style: normal;
    font-size: @font-size--title-small-4;
    margin: 0;
  }

  &__warning {
    color: @osu-colour-c2;
  }
}
